﻿@if (Request.IsAuthenticated)
{

    <script type='text/javascript' src='@Url.Content("~/Content/themes/base/admin-bar.js")'></script>
    <div id="wpadminbar">
        <div class="quicklinks">
            <ul>
                <li id="wp-admin-bar-my-account-with-avatar" class="menupop"><a href="http://ggtwlb0314.gicp.net/blog/wp-admin/profile.php">
                    <span>
                        <img alt='' src='@Url.Content("~/Content/themes/base/images/default_avatar.gif")'
                            class='avatar avatar-16 photo' height='16' width='16' />@User.Identity.Name</span></a>
                    <ul>
                        <li id="wp-admin-bar-edit-profile" class=""><a href="http://ggtwlb0314.gicp.net/blog/wp-admin/profile.php">
                            编辑我的个人资料</a> </li>
                        <li id="wp-admin-bar-logout" class="">
                            @Html.ActionLink("登出", "LogOff", "Account")</li>
                    </ul>
                </li>
                <li id="wp-admin-bar-dashboard" class="">
                @Html.ActionLink("控制面板", "Index","User")
                </li>
                <li id="wp-admin-bar-new-content" class="menupop"><a href="http://ggtwlb0314.gicp.net/blog/wp-admin/post-new.php?post_type=post">
                    <span>添加</span></a>
                    <ul>
                        <li id="wp-admin-bar-new-post" class=""><a href="http://ggtwlb0314.gicp.net/blog/wp-admin/post-new.php?post_type=post">
                            文章</a> </li>
                        <li id="wp-admin-bar-new-page" class=""><a href="http://ggtwlb0314.gicp.net/blog/wp-admin/post-new.php?post_type=page">
                            页面</a> </li>
                        <li id="wp-admin-bar-new-theme" class="">
                        @Html.ActionLink("用户", "Create", "AdminUser")
                         </li>
                        <li id="wp-admin-bar-new-plugin" class=""><a href="http://ggtwlb0314.gicp.net/blog/wp-admin/plugin-install.php">
                            插件</a> </li>
                    </ul>
                </li>
                <li id="wp-admin-bar-comments" class=""><a href="http://ggtwlb0314.gicp.net/blog/wp-admin/edit-comments.php">
                    评论 </a></li>
                <li id="wp-admin-bar-updates" class=""><a href="http://ggtwlb0314.gicp.net/blog/wp-admin/update-core.php">
                    <span title='2 个主题更新'>更新 <span id='ab-updates' class='update-count'>2</span></span></a>
                </li>
            </ul>
        </div>
    </div>

}
else
{
    <div id="wpadminbar">
        <div class = "quicklinks" id="login">
            <ul>
                <li>
                        @Html.ActionLink("登录", "LogIn", "Account")
                </li>
                <li>
                        @Html.ActionLink("注册","Register","Account")
                </li>
            </ul>
        </div>
    
    </div>
}
